package com.demo.entity;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

@Data
@TableName("teacher")
public class Teacher{

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer age;

    private String name;
}